



tags_synchronizer = Components.classes["@mozilla.org/TagsSynchronizer;1"].getService(Components.interfaces.nsITagsSynchronizer);

// An extension
var MyExtension = {
	
	onLoad: function() {
		tags_synchronizer.synchronize("True", "True");
	},
	
	onUnload: function() {
		// Normally since the tags have been synchronized at the firefox launch, and they have remained synchronized thanks to the bookmark_listener, it is not necessary to perform any synchronization at the firefox closure.
	},
	
};


window.addEventListener("load", function() {MyExtension.onLoad()}, false);
window.addEventListener("unload", function() {MyExtension.onUnload()}, false);

